package com.nkym.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nkym.pojo.dto.user.SecretKeyRequest;
import com.nkym.pojo.dto.user.UserAddRequest;
import com.nkym.pojo.dto.user.UserLoginRequest;
import com.nkym.pojo.entity.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
* @author 19637
* @description 针对表【user】的数据库操作Service
* @createDate 2023-04-22 17:10:24
*/
public interface UserService extends IService<User> {

    boolean registerUser(UserAddRequest userAddRequest);

    User userLogin(UserLoginRequest userLoginRequest, HttpServletRequest request, HttpServletResponse response);
//    User getSafeUser(UserLoginRequest userLoginRequest, HttpServletRequest request, HttpServletResponse response);

    User currentUser(HttpServletRequest request);


    String getSecretKey(String encryptData, HttpServletRequest request);

}
